package ch.sfug.sequence {
	import ch.sfug.sequence.ISequenceChild;	

	/**
	 * @author Administrator
	 */
	public class PropertyAdjust implements ISequenceChild {
		
		private var o:Object;
		private var p:Object;

		public function PropertyAdjust( obj:Object, properties:Object ) {
			o = obj;
			p = properties;
		}

		public function hasToWait():Boolean {
			return false;
		}
		
		public function execute():void {
			for( var i:String in p ) {
				o[ i ] = p[ i ];
			}
		}
		
		public function stop():void {
		}
		
		public function setArguments(args:Array):void {
		}
		
		public function toString() : String {
			return "PropertyAdjust on: " + o;
		}
	}
}
